home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group94a.txt
/
000009_icon-group-sender _Mon Jan 10 14:29:43 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-08-19
|
2KB
Received: by cheltenham.cs.arizona.edu; Mon, 10 Jan 1994 18:57:04 MST
Date: Mon, 10 Jan 94 14:29:43 pst
From: balexander@ccmail.com
Message-Id: <9400107582.AA758240983@smtpgate.ccmail.com>
To: icon-group@cs.arizona.edu,
walter!flaubert!norman@rutgers.edu (Norman Ramsey)
Subject: Re: Icon and sockets
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
You can't use the "b" open option with pipes, unfortunately. The "p"
option is implemented using the (non-ANSI) C library popen() facility,
which only supports one way at a time. I suspect that a both-way
implementation could be done to support "b", but it would be
non-trivial.
I've wished for this before -- wouldn't Icon be wonderful for
controlling an external process! I tried to do something using standard
Icon and PTYs (in UNIX), but was unsuccessful. If anyone has been able
to do this, I encourage you to post your solution: it seems that others
might be interested.
-- Bob (balexander@ccmail.com)
______________________________ Reply Separator _________________________________
Subject: Icon and sockets
Author: walter!flaubert!norman@rutgers.edu (Norman Ramsey) at internet-mail
Date: 1/10/94 11:17 AM
In article <CJ7nLJ.DL6@walter.bellcore.com>,
Darren New <dnew@thumper.bellcore.com> wrote:
>You can delete, unfortunately, easy low-level nonportable access to OS
>features. It's non-trivial to use sockets, for example, from inside
>Icon, I've found.
Yes, and it's a disappointment. I had the idea of trying
socket := open("telnet myhost 119", "bp")
on a Unix host to see if I could write network clients that way, but I
haven't actually gotten around to it yet. If anyone gets something
similar to work, I would enjoy hearing about it.
To write servers, the best alternative may be to write a C program
that uses accept(2) and then forks an Icon program once a connection
is established.
Norman